-- GENERATED SPELL FOR [Plagued Insect] --


function spell0_10461(pUnit, Event) --@Festering Bite,n/a--
pUnit:FullCastSpellOnTarget(16460,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10461', 20280, 1)
end

function Sorts_10461(pUnit, Event)
local choix_sorts_10461 = math.random(0, 0)
if choix_sorts_10461 == 0 then
pUnit:RegisterEvent('spell0_10461', 1, 1)
end
end

function mob10461_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10461', math.random(1500, 3000), 1)
end

function mob10461_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10461_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10461_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10461, 1, 'mob10461_Action')
RegisterUnitEvent(10461, 2, 'mob10461_Leave')
RegisterUnitEvent(10461, 3, 'mob10461_Kill')
RegisterUnitEvent(10461, 4, 'mob10461_Die')
